package service

import (
	"context"
	user "userrpc/kitex_gen/user"
)

type LoginService struct {
	ctx context.Context
} // NewLoginService new LoginService
func NewLoginService(ctx context.Context) *LoginService {
	return &LoginService{ctx: ctx}
}

// Run create note info
func (s *LoginService) Run(req *user.User) (resp *user.User, err error) {
	// Finish your business logic.
	resp = &user.User{
		Id:         req.Id,
		Username:   req.Username,
		Role:       req.Role,
		Phone:      req.Phone,
		CreateTime: req.CreateTime,
		DeleteTime: req.DeleteTime,
		Status:     req.Status,
		Password:   req.Password,
	}
	return
}
